import request from '@/utils/request'
import { projectApiUrlList } from '@/api/config'

// const projectApiUrlList = '/cscec-project-business-hp'

/**
 * 双优化案例 - 打印
 * @param parameter
 */
export function knowledgeOptimizePrint(parameter) {
  return request({
    url: projectApiUrlList + '/project/knowledge/doc',
    method: 'get',
    params: parameter
  })
}

/**
 * 双优化案例列表查询
 * @param parameter
 */
export function knowledgeOptimizeList(parameter) {
  return request({
    url: projectApiUrlList + '/project/knowledge/list',
    method: 'post',
    data: parameter
  })
}

/**
 * 双优化案例详情
 */
export function knowledgeOptimizeDetail(params) {
  return request({
    url: projectApiUrlList + '/project/knowledge/detail',
    method: 'get',
    params
  })
}

/**
 * 双优化案例删除
 */
export function knowledgeOptimizeDel(params) {
  return request({
    url: projectApiUrlList + '/project/knowledge/delete',
    method: 'get',
    params
  })
}
